package cn.stylefeng.guns.modular.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 停车位使用情况信息
 * </p>
 *
 * @author
 * @since 2020-04-15
 */
@Data
@TableName("thesis_parking_place_use_info")
public class ParkingPlaceUseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("parking_place_id")
    private Integer parkingPlaceId;

    /**
     * 车库id
     */
    @TableField("parking_id")
    private Integer parkingId;

    /**
     * 位置
     */
    @TableField("open_id")
    private String openId;

    /**
     * 价格
     */
    @TableField("money")
    private Integer money;

    /**
     * 支付时间
     */
    @TableField("pay_time")
    private Date payTime;    @TableField("park_start_time")
    private Date parkStartTime;
    @TableField("order_time")
    private String orderTime;

    /**
     * 0 已支付 1 未支付
     */
    @TableField("pay_flag")
    private String payFlag;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParkingPlaceId() {
        return parkingPlaceId;
    }

    public void setParkingPlaceId(Integer parkingPlaceId) {
        this.parkingPlaceId = parkingPlaceId;
    }

    public Integer getParkingId() {
        return parkingId;
    }

    public void setParkingId(Integer parkingId) {
        this.parkingId = parkingId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayFlag() {
        return payFlag;
    }

    public void setPayFlag(String payFlag) {
        this.payFlag = payFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ParkingPlaceUseInfo{" +
                "id=" + id +
                ", parkingPlaceId=" + parkingPlaceId +
                ", parkingId=" + parkingId +
                ", openId=" + openId +
                ", money=" + money +
                ", payTime=" + payTime +
                ", payFlag=" + payFlag +
                ", createTime=" + createTime +
                "}";
    }
}
